<?php
include("include/config.inc.php");

if(isset($_GET['processId']) && $_GET['processId'] > 0)
{
  $deleteQuery = "DELETE FROM process WHERE processId = ".$_GET['processId'];
  $deleteQueryRes = mysql_query($deleteQuery);
  if(!$deleteQueryRes)
    echo("DELETE FAIL");
  else
    header("Location:process.php");
}
if(isset($_GET['finalprocessId']) && $_GET['finalprocessId'] > 0)
{
  $deleteQuery = "DELETE FROM finalprocess WHERE finalprocessId = ".$_GET['finalprocessId'];
  $deleteQueryRes = mysql_query($deleteQuery);
  if(!$deleteQueryRes)
    echo("DELETE FAIL");
  else
    header("Location:finalProcess.php");
}
?>